﻿<!-- "script/apps/Aries/Creator/Game/GUI/ActorAnimationsDialog.html" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
<pe:mcml>
<script refresh="false" type="text/npl" src="ActorAnimationsDialog.lua"><![CDATA[
ActorAnimationsDialog = commonlib.gettable("MyCompany.Aries.Game.GUI.ActorAnimationsDialog");
ActorAnimationsDialog.OnInit()
function OnClose()
    ActorAnimationsDialog.result = nil;
    Page:CloseWindow();
end

function OnSelectAnim(treenode)
    local id = treenode.mcmlNode:GetPreValue("this").id;
    if(id) then
        ActorAnimationsDialog.OnSelectAnimId(id)
    end
end
]]></script>
<aries:window mode="thin" title='<%=L"选择动作"%>' style="width:480px;" uiname_onclose="ActorAnimationsDialog.OnClose" onclose="OnClose">
    <div style="color:#ffffff;margin:5px;">
        <%=ActorAnimationsDialog.GetText()%>
    </div>
   <div style="margin-top:10px;" class="default">
        <div style="float:left;width:200px;padding-left:5px;">
            <div style="width:185px;height:185px;margin-bottom:5px;background-color:#00000080">
                <pe:canvas3d name="AssetPreview" DefaultRotY="-1.57" DefaultCameraObjectDist="5" autoRotateSpeed="0.12" miniscenegraphname="AssetPreview" RenderTargetSize="256" style="width:185px;height:185px;" />
            </div>
        </div>
        <div style="float:left;width:260px">
            <div class="mc_panel" style="padding-top:3px;padding-bottom:3px;">
                <pe:treeview ShowIcon="false" uiname="ActorAnimationsDialog.tvwAnimIds" name="tvwAnimIds" VerticalScrollBarStep="20" DataSource='<%=ActorAnimationsDialog.GetModelAnimDs()%>' DefaultNodeHeight="20" style="background:;height:180px;margin-right:10px;">
                    <NodeTemplates>
                        <NodeTemplate DataType="anim">
                            <pe:treenode uiname='<%="ActorAnimationsDialog.sel."..(XPath("this|text") or tostring(XPath("this|id")))%>' style="height:20px;color:#ffffff" OnClick="OnSelectAnim" can_select="true" text='<%=XPath("this|text") or tostring(XPath("this|id"))%>'></pe:treenode>
                        </NodeTemplate>
                    </NodeTemplates>
                    <DataNodePlaceholder xpath="*" />
                </pe:treeview>
            </div>
        </div>
    </div>
    <div style="margin-top:10px;margin-bottom:20px;">
        <input type="button" uiname="ActorAnimationsDialog.OK" name="OK" DefaultButton="true" style="margin-left:390px;min-width:70px;height:24px;" class="mc_light_grey_button_with_fillet" onclick="ActorAnimationsDialog.OnOK" value='<%=L"确定"%>' />
    </div>
</aries:window>
</pe:mcml>
</body>
</html>